package lottery.office;

import java.util.Arrays;

public class LotteryTicket {
	
	private static int numberOfTickets = 0;
	protected int ticketId;
	private String date;
	protected int[] tableOfCheckedNumbers;


	public LotteryTicket(int ticketId, String date) {

		this.ticketId = ticketId;
		this.date = date;
	}
	
	@Override
	public String toString() {
		StringBuffer result = new StringBuffer();
		result.append("TicketId: " + ticketId + "\n");
		result.append("Date: " + date + "\n");
		result.append("Checked numbers: "	+ Arrays.toString(tableOfCheckedNumbers) + "\n");
		return result.toString();
	}
	
	public static int getNumberOfTickets() {
		return numberOfTickets;
	}

	public static void setNumberOfTickets(int numberOfTickets) {
		LotteryTicket.numberOfTickets = numberOfTickets;
	}

	public int getTicketId() {
		return ticketId;
	}

	public void setTicketId(int ticketId) {
		this.ticketId = ticketId;
	}

}
